package com.fjnldx.mes.domain.domainRes.alarm;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fjnldx.mes.domain.pojo.alarm.AlarmNotice;
import com.fjnldx.mes.domain.pojo.alarm.AlarmRules;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 告警详情响应
 */
@Data
public class AlarmDetailRes {
    //主键
    Integer id;
    
    //编号
    String code;

    //告警名称
    String name;

    //告警状态
    Boolean isActive;

    //告警备注
    String note;

    //创建时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime createTime;

    //告警规则
    List<AlarmRules> rules;

    //告警通知
    List<AlarmNotice> notices;
}
